﻿using Apps.Common;
using Apps.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Apps.IBLL.LMS
{
    public partial interface ILMS_TEMPLATE_DETAILBLL
    {
        List<V_LMS_TEMPLATEDETAIL> GetListDetail(string parentId,bool flag=true);
        bool Creates(ref ValidationErrors errors, List<LMS_TEMPLATE_DETAIL> model);
    }

    public partial interface ILMS_TEMPLATE_DETAILBLL : IBaseBLL<LMS_TEMPLATE_DETAILModel>
    {
        bool Deletes(ref ValidationErrors errors, Expression<Func<LMS_TEMPLATE_DETAIL, bool>> whereLambda);
        LMS_TEMPLATE_DETAILModel GetItem(Expression<Func<LMS_TEMPLATE_DETAIL, bool>> whereLambda);
        List<LMS_TEMPLATE_DETAILModel> GetPagerList(ref GridPager pager, Expression<Func<LMS_TEMPLATE_DETAIL, bool>> whereLambda);
        List<LMS_TEMPLATE_DETAILModel> GetList(Expression<Func<LMS_TEMPLATE_DETAIL, bool>> whereLambda);
        //new List<LMS_TEMPLATE_DETAILModel> GetListByParentId(ref GridPager pager, string queryStr, object parentId);
    }
}